﻿﻿using System;
using System.Collections.Generic;
using System.Text;
namespace WebApplication1.DDD.Models.Entity.ConnectionString_SQLSERVER
{
    public class Cj_Prize:NFinal.Struct
    {
		public System.Int32? id {get;set;}
		public System.Int32? activity_id {get;set;}
		public System.Int32? prize_no {get;set;}
		public System.String prize_title {get;set;}
		public System.Int32? prize_type {get;set;}
		public System.Int32? prize_score {get;set;}
		public System.String prize_desc {get;set;}
		public System.Int32? prize_num {get;set;}
		public System.String prize_img {get;set;}
		public System.Int32? prize_chance {get;set;}
		public System.String memoa {get;set;}
		public System.String memob {get;set;}
		public System.String memoc {get;set;}
		public System.DateTime? add_time {get;set;}
		#region 写Json字符串
		public override void WriteJson(System.IO.TextWriter tw)
		{
			tw.Write("{");
					tw.Write("\"id\":");
					tw.Write(id==null?"null" : id.ToString());
					tw.Write(",");
					tw.Write("\"activity_id\":");
					tw.Write(activity_id==null?"null" : activity_id.ToString());
					tw.Write(",");
					tw.Write("\"prize_no\":");
					tw.Write(prize_no==null?"null" : prize_no.ToString());
					tw.Write(",");
					tw.Write("\"prize_title\":");
					tw.Write("\"");
					tw.Write(prize_title==null?"null":prize_title);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"prize_type\":");
					tw.Write(prize_type==null?"null" : prize_type.ToString());
					tw.Write(",");
					tw.Write("\"prize_score\":");
					tw.Write(prize_score==null?"null" : prize_score.ToString());
					tw.Write(",");
					tw.Write("\"prize_desc\":");
					tw.Write("\"");
					tw.Write(prize_desc==null?"null":prize_desc);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"prize_num\":");
					tw.Write(prize_num==null?"null" : prize_num.ToString());
					tw.Write(",");
					tw.Write("\"prize_img\":");
					tw.Write("\"");
					tw.Write(prize_img==null?"null":prize_img);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"prize_chance\":");
					tw.Write(prize_chance==null?"null" : prize_chance.ToString());
					tw.Write(",");
					tw.Write("\"memoa\":");
					tw.Write("\"");
					tw.Write(memoa==null?"null":memoa);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"memob\":");
					tw.Write("\"");
					tw.Write(memob==null?"null":memob);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"memoc\":");
					tw.Write("\"");
					tw.Write(memoc==null?"null":memoc);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"add_time\":");
					tw.Write("\"");
					tw.Write(add_time==null?"null":add_time.ToString());
					tw.Write("\"");
			tw.Write("}");
		}
		#endregion
    }
}
